package com.learning.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.learning.enums.DiffType;
import com.learning.enums.QuestionType;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 题目表
 * </p>
 *
 * @author itRao
 * @since 2024-05-24
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("question")
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 题目内容，主观题为url路径
     */
    private String questionContent;

    /**
     * 题目类型，1-选择题，2-填空题，3-主观题
     */
    private QuestionType type;

    /**
     * 难易度，1-简单，2-中等，3-困难
     */
    private DiffType difficulty;

    /**
     * 题目出错率
     */
    private Double errorRate;


}
